/// <summary>
/// Summary description for Class1
/// </summary>
/// 
namespace YaP
{
    public class ChannelStyle
    {
        public int BgColor;
        public bool disptime;
        public int FoColor;
        public bool handlemirccolors;
        public string nicklimitbeg;
        public string nicklimitend;
        public string timelimitbeg;
        public string timelimitend;
        public string timesep;


        /// <summary>
        /// Initialize at default value
        /// </summary>
        public ChannelStyle()
        {
            nicklimitbeg = "6>15";
            nicklimitend = "6<17";
            timelimitbeg = "7(17";
            timelimitend = "7)17";
            timesep = "14:17";
            disptime = true;
            handlemirccolors = true;
            FoColor = 0;
        }

        public ChannelStyle(string _nblimit, string _nelimit, string _tblimit, string _telimit, string _tseparator,
                            bool _dtime, bool _hmirccolors, bool _generic, int _bgcolor, int _focolor)
        {
            if (!_generic)
            {
                nicklimitbeg = _nblimit;
                nicklimitend = _nelimit;
                timelimitbeg = _tblimit;
                timelimitend = _telimit;
                timesep = _tseparator;
                disptime = _dtime;
                handlemirccolors = _hmirccolors;
            }
            else
            {
                nicklimitbeg = ">";
                nicklimitend = "<";
                timelimitbeg = "(";
                timelimitend = ")";
                timesep = ":";
                disptime = true;
                handlemirccolors = false;
            }
        }
    }
}